//引入VueRouter组件
import VueRouter from "vue-router";

//引入组件
import About from '../components/About.vue'
import Home from '../components/Home.vue'

export default new VueRouter({
  routes: [
    {
      path: '/about',
      component: About
    },
    {
      path: '/home',
      component: Home
    }
  ]
})

//创建一个路由器
/*const router = new VueRouter({
  routes: [
    {
      path: '/about',
      component: About
    },
    {
      path: 'home',
      component: Home
    }
  ]
})

//暴露给外界使用访问
export default router*/